<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="">
  <meta name="author" content="">
  <link rel="icon" href="/public/img/favicon.ico">

  <title>注册</title>

  <!-- Bootstrap core CSS -->
  <link href="/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">

  <!-- Custom styles for this template -->
  <link href="/public/css/signin.css" rel="stylesheet">

</head>

<body>

  <div class="container">

    <form class="form-signin" id="register_form" method="post" action="/register">
      <h2 class="form-signin-heading">请注册</h2>
      <label for="inputEmail" class="sr-only">Email address</label>
      <input type="email" id="email" name="email" class="form-control" placeholder="电子邮件地址" required autofocus>
      <label for="inputPassword" class="sr-only">Password</label>
      <input type="password" id="password" name="password" class="form-control" placeholder="密码" required>

      {{ if message }}
      <p>{{ message }}</p>
      {{ /if }}

      <button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>
      <div class="message">
        <label>
          <p>已有账号? <a href="/login">点击登录</a>.</p>
        </label>
      </div>
    </form>

  </div>

</body>

</html>